home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / skins / halo / ProgressTrackSkin.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  44 lines

  1. package mx.skins.halo
  2. {
  3.    import mx.core.mx_internal;
  4.    import mx.skins.Border;
  5.    import mx.styles.StyleManager;
  6.    import mx.utils.ColorUtil;
  7.    
  8.    use namespace mx_internal;
  9.    
  10.    public class ProgressTrackSkin extends Border
  11.    {
  12.       
  13.       mx_internal static const VERSION:String = "3.0.0.0";
  14.        
  15.       
  16.       public function ProgressTrackSkin()
  17.       {
  18.          super();
  19.       }
  20.       
  21.       override public function get measuredWidth() : Number
  22.       {
  23.          return 200;
  24.       }
  25.       
  26.       override public function get measuredHeight() : Number
  27.       {
  28.          return 6;
  29.       }
  30.       
  31.       override protected function updateDisplayList(param1:Number, param2:Number) : void
  32.       {
  33.          super.updateDisplayList(param1,param2);
  34.          var _loc3_:uint = getStyle("borderColor");
  35.          var _loc4_:Array = getStyle("trackColors") as Array;
  36.          StyleManager.getColorNames(_loc4_);
  37.          var _loc5_:Number = ColorUtil.adjustBrightness2(_loc3_,-30);
  38.          graphics.clear();
  39.          drawRoundRect(0,0,param1,param2,0,[_loc5_,_loc3_],1,verticalGradientMatrix(0,0,param1,param2));
  40.          drawRoundRect(1,1,param1 - 2,param2 - 2,0,_loc4_,1,verticalGradientMatrix(1,1,param1 - 2,param2 - 2));
  41.       }
  42.    }
  43. }
  44.